package view
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class Button extends Sprite
	{
		public function Button(bd:Bitmap)
		{
			super();
			buttonMode=useHandCursor=true;
			addChild(bd);
			alpha=.8;
			addEventListener(MouseEvent.ROLL_OVER,onOver);
			addEventListener(MouseEvent.ROLL_OUT,onOut);
		}
		private function onOver(e:MouseEvent):void
		{
			alpha=1;
		}
		private function onOut(e:MouseEvent):void
		{
			alpha=.8;
		}
	}
}